package com.cutebaby.admin.com.ioc;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author: xialegemo
 * @description:
 * @date： 2020/10/23 0:37
 **/
public class TestIoc {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

        UserService userService = applicationContext.getBean("userService", UserService.class);

        System.out.println(userService);
    }




}
